Skip to main content
Version: Upcoming

CCodeDefinition

V8 Message Definiton

Commodity code (product code) definitions for all futures. Also maps future ccodes to SpiderRock tickers. Information is sourced from listing exchange product definitions. This table also contains definitions for exchange and user-defined spreads including spreads used as option underliers. SpiderRock typically uses a compact form of the exchange (spread) product ID as the ccode for these products if there is no natural (human-readable) exchange spread ticker issued for the spread. Note that the full spread definition can be found in the ProductDefinition and human-readable version in the description field below. Note that SpiderRock tickers below are synthetic and are created for organizational purposes only. SpiderRock synthetic tickers typically begin with a '@' character.

METADATA

AttributeValue
Topic4335-product-definition
MLink TokenFutureDefinition
ProductSRAnalytics
accessTypeSELECT
MLink EndpointMLink-Live

Table Definition

FieldTypeKeyDefault ValueComment
ccode_atenum - AssetTypePRI'None'
ccode_tsenum - TickerSrcPRI'None'
ccode_tkVARCHAR(12)PRI''
futexchenum - FutExch'None'listing exchange
ticker_atenum - AssetType'None'master underlying
ticker_tsenum - TickerSrc'None'master underlying
ticker_tkVARCHAR(12)SEC''master underlying
settleTimeenum - SettleTime'None'Settlement time None PM AM
positionLimitINT0max contract limit
tickValueFLOAT0NLV value of a single tick change in display premium pointValue tickValue tickSize
pointValueFLOAT0NLV value of a single point change in display premium pointValue tickValue tickSize
pointCurrencyenum - Currency'None'
priceScalingFLOAT0underlying price scale factor products where the underlying quotes in cents will have 001
underliersPerCnINT0shares bond or index units underlying the future contract size
underlierTypeenum - UnderlierType'None'Underlying type None Equity Other FX
clearingCodeVARCHAR(6)''GMIClearing code
ricRootVARCHAR(6)''RIC Root
bbgRootVARCHAR(6)''Bloomberg root
bbgYrCodeenum - BbgYrCode'None'Format for the year field in the Bloomberg Code
bbgGroupenum - YellowKey'None'Bloomberg Yellow Key
gmiExchangeVARCHAR(3)''GMI Sungard exchange code
gmiProductVARCHAR(3)''GMI Sungard product code
gmiSubTypeVARCHAR(3)''GMI Sungard subtype code
displayPriceScalingFLOAT0internal display price scale factor override
strikeScalingFLOAT0internal strike price scale factor override
descriptionVARCHAR(48)''product description
marketCenterVARCHAR(48)''market center eg ICE Market Type CME MarketGroup
tradingPeriodenum - TradingPeriod'None'
isHftTaxLiableenum - YesNo'None'if Yes futures in this ccode grouping are liable for high frequency taxation and require hft throttling for maker algos
hftTaxTriggerTimeDOUBLE0value in seconds that any order activity new cancel update needs witheld for to prevent triggering hft default 5 seconds per Italian tax
timestampDATETIME(6)'1900-01-01 00:00:00.000000'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ccode_tk1
ccode_at2
ccode_ts3

SECONDARY INDEX (TickerIndex) (Not Unique)

FieldSequence
ticker_tk1

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRAnalytics`.`MsgCCodeDefinition`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') */
`ccode_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX') */
`ccode_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ccode_tk` = 'Example_ccode_tk';

Doc Columns Query

SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='CCodeDefinition' ORDER BY ordinal_position ASC;